package com.newbingo.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import com.newbingo.domain.common.EntitySupport;
import com.newbingo.domain.common.Identity;

/**
 * Affiche entity.
 * 
 * @author Chanson Yan
 */

@Entity
@Table(name = "Affiche")
public class Affiche extends EntitySupport<Affiche, Integer> implements
		java.io.Serializable {
	@Identity
	private Integer affId;
	private String title;
	private String contents;
	private Date createTime;
	private Integer type;

	// Constructors

	/** default constructor */
	public Affiche() {
	}

	// Property accessors

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "affId")
	public Integer getAffId() {
		return this.affId;
	}

	public void setAffId(Integer affId) {
		this.affId = affId;
	}

	@Column(name = "title")
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "contents", length = 500)
	public String getContents() {
		return this.contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	@Column(name = "createTime")
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "type")
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}